import request from "@/utils/request"

// 登录请求参数类型
type XuekeParamsType = {
    subjectId: number | string;
    pageIndex: number;
    pageSize: number
}

type XuekeResponseType<T> = {
    total: number;
    list: T[]
}

// 登录返回值类型
export type XuekeType = {
    id: number;
    subjectId: number,
    createTime: string;
    userScore: string
    subjectName: string
}

// 登录接口
export function xuekePage(data: XuekeParamsType) {
    return request.post<XuekeResponseType<XuekeType>>("/api/admin/examPaperAnswer/page", data)
}